If authorizations are required then a ReadAccessName and/or WriteAccessName file is needed in the directory you wish to protect with the following data:
AuthType: Basic
Realm: RealmName
AuthUserFile: PasswordFile
The password file has the following format:
UserName:Password
The password file should NOT be in a directory which could be accessed via a browser.